Skip to content

feat: Add initial structured output for agent#1466

Open
ryans-posthog wants to merge 8 commits intomainfrom
ryan/structured_output
Open

feat: Add initial structured output for agent#1466
ryans-posthog wants to merge 8 commits intomainfrom
ryan/structured_output

Conversation

@ryans-posthog
Copy link
Copy Markdown
Contributor

@ryans-posthog ryans-posthog commented Apr 2, 2026

Problem

Currently, users cannot execute a AI Task and expect a structured output from it.

Changes

The PR adds a new tool for accepting and verifying structured output and wires it to fire on the onOutput event. Currently it is only available for Anthropic Claude based executions. The implementation for Codex will follow as it requires a more complex method of interaction.

How did you test this?

Build the agent and start the Posthog system locally. Rebuild the agent docker image with the new code and execute a task via the console with a json schema set. Verify that the task calls the structured output endpoint and the task completes successfully.

Copy link
Copy Markdown
Contributor Author

ryans-posthog commented Apr 2, 2026

This stack of pull requests is managed by Graphite. Learn more about stacking.

@charlesvien charlesvien changed the title Add initial structured output for agent feat: Add initial structured output for agent Apr 3, 2026
@charlesvien charlesvien force-pushed the ryan/upgrade_to_zod_4 branch from 34bdfcd to bad7053 Compare April 3, 2026 01:57
Base automatically changed from ryan/upgrade_to_zod_4 to main April 3, 2026 02:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant